#pragma once
#include "videostream_common.h"

#define MAX_TASK_QUEUE_CNT  2      //VideoStream帧缓冲

class VSFrameQueue {

public:
    int Init(int width, int height);
	int ReSize(int width, int height);
    void Push(BYTE* src);
    cv::Mat Pop();
	void Release();
private:
    int length;
    size_t read_pos = 0;
    size_t write_pos = 0;
	cv::Mat frame[MAX_TASK_QUEUE_CNT];
};
	
